MOD

Syntax: x MOD y        (QL ROM)
   and: MOD (x,y)      (Math Package)
Location: QL ROM, Math Package

This operator returns the value of x to modulus y. This is defined as x-(x DIV y)*y. If x or y is not an integer value, then it is rounded to the nearest integer (compare INT).

The Math Package version is a function which accepts a broader range of parameters.

Example:
PRINT 13.4 MOD 1.5
gives the result 1 (13 MOD 2).

CROSS-REFERENCE:
DIV returns the integer part of x divided by y.
